Skip to content

fix: cursor left on Escape from insert mode#44

Merged
oribarilan merged 1 commit into
mainfrom
fix/escape-cursor-left
Jun 16, 2026
Merged

fix: cursor left on Escape from insert mode#44
oribarilan merged 1 commit into
mainfrom
fix/escape-cursor-left

Conversation

@oribarilan

@oribarilan oribarilan commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Escape from insert mode now moves the cursor one position left (unless at column 0 or start of line), matching vim. Without this, a + Escape crept the cursor rightward and exiting insert after typing left the cursor one past the last character.

Closes #43

@oribarilan oribarilan changed the title fix: move cursor left when leaving insert mode with Escape fix: cursor left on Escape from insert mode Jun 16, 2026
Vim moves the cursor one position left when exiting insert mode,
unless at position 0 or start of line. Without this, `a` + Escape
crept the cursor rightward, and exiting insert after typing left
the cursor past the last character instead of on it.

Closes #43
@oribarilan oribarilan force-pushed the fix/escape-cursor-left branch from 9e5255d to 652425a Compare June 16, 2026 08:48
@oribarilan oribarilan merged commit 51ca4bc into main Jun 16, 2026
1 check passed
@oribarilan oribarilan deleted the fix/escape-cursor-left branch June 16, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inaccurate behavior escaping input mode

1 participant